#ifndef PROMPTVIEW_H
#define PROMPTVIEW_H

#include <QGraphicsView>
class ImageItem;

class PromptView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit PromptView(int itype,QString str,bool bNoButton = true,QWidget *parent = 0);
    ~PromptView();

    void mousePressEvent(QMouseEvent *event);
public:
    QGraphicsScene          *m_Scene;
    QGraphicsTextItem*      m_textItem;
    ImageItem*              m_yesBtnItem;
    ImageItem*              m_noBtnItem;
    ImageItem*              m_bgItem;
    int                     m_itype;
    int                     m_sel;
signals:
    void select(int itype,int isel);
public slots:

};

#endif // PROMPTVIEW_H
